<?php

if (!function_exists('token')) {
    function token($uid, $options = [])
    {
        return app('jwt')->token($uid, $options)->toString();
    }
}

if (!function_exists('isMultiApp')) {
    function isMultiApp(): bool
    {
        return app()->getService('think\app\Service') !== null;
    }
}
